package model;

public enum CardSuit {
	
	CLUBS(0), DIAMONDS(1), HEARTS(2), SPADES(3);
	
	private final int index;
	
	private CardSuit(int index)
	{
		this.index = index;
	}
	
	public int toInteger()
	{
		return index;
	}
	
	public String toShortString()
	{
		switch (this)
		{
			case CLUBS:
				
				return "c";
			
			case DIAMONDS:
				
				return "d";
			
			case HEARTS:
				
				return "h";
			
			case SPADES:
				
				return "s";
		}
		
		return "?";
	}
	
	public String toString()
	{
		switch (this)
		{
			case CLUBS:
				
				return "Clubs";
			
			case DIAMONDS:
				
				return "Diamonds";
			
			case HEARTS:
				
				return "Hearts";
			
			case SPADES:
				
				return "Spades";
		}
		
		return null;
	}
	
}
